package com.pengshun.modules.api.user.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pengshun.modules.api.coal.validator.First;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 驾照
 */
@Data
public class DrivingLicenseDto {

    private Long drivingLicenseId;

    private Long userId;

    @NotNull(message = "name不能为空", groups = {First.class})
    @Length(max = 20,message = "姓名最长20位", groups = {First.class})
    private String name;

    @NotNull(message = "idcard不能为空", groups = {First.class})
    private String idcard;

    @NotNull(message = "dlImage不能为空", groups = {First.class})
    private String dlImageFront;
    private String dlImageBack;

    private Date expireDate;

    /**审核状态(1审核中,2通过审核,3审核失败4已过期) */
    private Integer status;

    private  String remark;

    private Long checkUserId;

    private String checkUserName;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date checkTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date creatTime;

    private Integer drivingStatus;

    private String idCardFrontImg;

    private String idCardBackImg;

}
